// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.Cluster;

public sealed partial class FieldTypes
{
	/// <summary>
	/// <para>The number of occurrences of the field type in selected nodes.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("count")]
	public int Count { get; init; }

	/// <summary>
	/// <para>The number of indices containing the field type in selected nodes.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("index_count")]
	public int IndexCount { get; init; }

	/// <summary>
	/// <para>For dense_vector field types, number of indexed vector types in selected nodes.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("indexed_vector_count")]
	public long? IndexedVectorCount { get; init; }

	/// <summary>
	/// <para>For dense_vector field types, the maximum dimension of all indexed vector types in selected nodes.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("indexed_vector_dim_max")]
	public long? IndexedVectorDimMax { get; init; }

	/// <summary>
	/// <para>For dense_vector field types, the minimum dimension of all indexed vector types in selected nodes.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("indexed_vector_dim_min")]
	public long? IndexedVectorDimMin { get; init; }

	/// <summary>
	/// <para>The name for the field type in selected nodes.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("name")]
	public string Name { get; init; }

	/// <summary>
	/// <para>The number of fields that declare a script.</para>
	/// </summary>
	[JsonInclude, JsonPropertyName("script_count")]
	public int? ScriptCount { get; init; }
}